import Mock from 'mockjs'
Mock.setup({
    timeout: 500
})

Mock.mock('/api/getList', [
    {
        key: '1',
        name: '张三',
        age: 32,
        address: 'New York No. 1 Lake Park'
    },
    {
        key: '2',
        name: '李四',
        age: 42,
        address: 'London No. 1 Lake Park'
    },
    {
        key: '3',
        name: '王五',
        age: 32,
        address: 'Sidney No. 1 Lake Park'
    }
])

Mock.mock('/api/count', () => {
    return Number(String(new Date().getTime()).slice(4, 5)) 
})

Mock.mock('/getList', [444, 555, 66])